import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.SQLException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-11-02
 * Time: 12:10
 */
public class BlogDemo {
    //针对博客列表的操作
    public void AddBlog(BlogInfo blog){
        Connection connection = null;
        PreparedStatement statement =null;
        try{
            connection = DBUtil.connection();
            String sql = "insert into blog value (null,?,?,?,?)";
        } catch (SQLException e) {
            throw new RuntimeException(e);
        } finally {
            DBUtil.Close(connection,statement,null);
        }
    }
}
